#include "shape.hpp"
using namespace std;

int main(int argc, const char **argv)
{
    Rectangle r;
    cin >> r;
    cout << r.area() << endl;
    Square s;
    cin >> s;
    cout << s.area() << endl;
    Circle c;
    cin >> c;
    cout << c.area() << endl;
	system("pause");
    return 0;
}